From: Jim Blandy Date: Tue, 11 May 1993 02:47:46 +0000 (+0000) Subject: * xdisp.c (display_text_line): Make face-handling code conditional X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~96318 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=9dbd4b48c5b89d82dc0e1a19b6938aa04ae550b1;p=emacs.git * xdisp.c (display_text_line): Make face-handling code conditional on HAVE_X_WINDOWS macro. Perhaps this isn't the best approach, but it'll do for now. * xdisp.c (display_text_line): We can't use the FRAME_DEFAULT_FACE macro here; that's x-specific. Just don't pass the second argument. * xfaces.c (compute_glyph_face): Remove the BASIC_FACE argument; use F's default face. --- diff --git a/src/xdisp.c b/src/xdisp.c index b7d554c7a39..5e19209b105 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -1701,6 +1701,7 @@ display_text_line (w, start, vpos, hpos, taboffset) pause = end; +#ifdef HAVE_X_WINDOWS /* Did we hit a face change? Figure out what face we should use now. We also hit this the first time through the loop, to see what face we should start with. */ @@ -1710,6 +1711,7 @@ display_text_line (w, start, vpos, hpos, taboffset) if (pos < next_face_change && next_face_change < pause) pause = next_face_change; } +#endif /* Wouldn't you hate to read the next line to someone over the phone? */ @@ -1816,6 +1818,7 @@ display_text_line (w, start, vpos, hpos, taboffset) p1++; } +#ifdef HAVE_X_WINDOWS /* Now we've laid down some characters between p1prev and p1. Let's apply current_face to those who have a face of zero (the default), and apply Vglyph_table to the result. */ @@ -1830,9 +1833,9 @@ display_text_line (w, start, vpos, hpos, taboffset) *gp = MAKE_GLYPH (GLYPH_CHAR (*gp), (GLYPH_FACE (*gp) == 0 ? current_face - : compute_glyph_face (f, FRAME_DEFAULT_FACE (f), - GLYPH_FACE (*gp)))); + : compute_glyph_face (f, GLYPH_FACE (*gp)))); } +#endif pos++; }